<!DOCTYPE html>
<html lang="en">
<#--<link rel="stylesheet" href="/css/frame.css"/>-->
<link rel="stylesheet" href="/css/common/add.css"/>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-2.1.1.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery.form.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="${ctx}/plugin/layer-v1.9.2/layer/layer.js"></script>
<script type="text/javascript" src="${ctx}/common/common.js"></script>
<script type="text/javascript" src="${ctx}/js/task/editCheck.js"></script>

<#--<link rel="stylesheet" type="text/css" href="${ctx}/css/mune/superfish.css" media="screen">-->
<#--<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>-->
<#--<script type="text/javascript" src="${ctx}/plugin/mune/hoverIntent.js"></script>-->
<#--<script type="text/javascript" src="${ctx}/plugin/mune/superfish.js"></script>-->
<script type="text/javascript">

    // initialise plugins
    /*jQuery(function(){
        jQuery('ul.sf-menu').superfish();
    });*/

</script>
<body>
<div class="l_err" style="wid 100%; margin-top: 2px;"></div>
<form id="form" name="form" class="form-horizontal" method="post"
      action="/taskManage/editCheck"
      enctype="multipart/form-data">
<#--<input id="dataUrl" value="${dataUrl}" type="hidden"/>-->
    <section class="">
        <div class="form-layer-group clearfix">
            <input name="checkId" type="hidden" id="checkId" value="${checkId}"/>
            <input name="delPhotoId" type="hidden" id="delPhotoId" value=""/>
        <#--<div class="form-group-div form-layer-input clearfix">
            <label class="control-label">问题库：</label>-->
        <#--<input id="isCloseFile" name="isCloseFile" value="1" type="hidden"/>-->
        <#--<input id="taskId" name="taskId" value="${taskId}" type="hidden"/>-->
        <#--<input id="checkItemId" name="checkItemId" value="" type="hidden"/>-->
        <#--  <ul class="sf-menu" id="nav">
              <li class="current"><a href="#a">问题库选择</a>
                  <ul class="sf-menu" id="nav">
                  <#if specMenu?? && specMenu?size gt 0>
                      <#list specMenu as specM>
                          <li class="current">
                              <a href="#a"><span
                              &lt;#&ndash;id="checkColor${child.eps.id}" dataId="${child.eps.id}"&ndash;&gt;
                                      class="menu-text">${specM.spec.caption} </span></a>
                              <ul class="sf-menu" id="nav${specM.spec.id}">
                                  <#if specM.periodMune ??>
                                      <#macro bpTree periodChildren>
                                          <#if periodChildren?? && periodChildren?size gt 0>
                                              <#list periodChildren as child>
                                                  <#if child.periodChildren?? && child.periodChildren?size gt 0>
                                                      <li class="current">
                                                          <a href="#a"><span
                                                                  id="checkColor${child.period.id}"
                                                                  dataId="${child.period.id}"
                                                                  class="menu-text">${child.period.caption} </span></a>
                                                          <ul class="sf-menu" id="nav${child.period.id}">

                                                              <@bpTree periodChildren=child.periodChildren />
                                                          </ul>
                                                      </li>
                                                  <#else>

                                                      <li class="current">
                                                          <a href="#a"> <span id="checkColor${child.period.id}"
                                                                              dataId="${child.period.id}"
                                                                              class="menu-text">${child.period.caption} </span></a>
                                                          <ul class="sf-menu" id="nav${child.period.id}">
                                                              <#list child.checkItemChildren as checkItem>
                                                                  <li class="current">
                                                                      <a href="javascript:checkItemDetails('${checkItem.id}','${checkItem.caption}', '${checkItem.checkRequire}', '${checkItem.measure}', '${checkItem.chekItemDemand}')">
                                                                          <b class="wj-fa"> </b> <span
                                                                              id="checkColor${checkItem.id}"
                                                                              dataId="${checkItem.id}"
                                                                      &lt;#&ndash;  content="${checkItem.caption}"
                                                                        degree="${checkItem.checkRequire}"
                                                                        demand="${checkItem.measure}"
                                                                        checkStand="${checkItem.chekItemDemand}"&ndash;&gt;
                                                                              class="menu-text">${checkItem.caption} </span></a>

                                                                  </li>
                                                              </#list>
                                                          </ul>
                                                      </li>

                                                  </#if>
                                              </#list>
                                          </#if>
                                      </#macro>
                                      <!-- 调用宏 生成递归树 &ndash;&gt;
                                      <@bpTree periodChildren=specM.periodMune />
                                  </#if>
                              </ul>
                          </li>

                      </#list>
                  </#if>
                  </ul>
              </li>
          </ul>
      </div>-->
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">内容：</label>
                <span id="content" class="span-medium">${detailMap.Content!""}</span>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">检查标准：</label>
                <span id="checkStand" class="span-medium">${detailMap.checkStand!""}</span>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">检查要求：</label>
                <span id="degree" class="span-medium">${detailMap.degree!""}</span>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">检查方法：</label>
                <span id="demand" class="span-medium">${detailMap.demand!""}</span>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">检查意见：</label>
                <input name="expressionDesc" type="text" id="expressionDesc" value="${detailMap.reformAdvice!""}"
                       class="span-medium"></input>
            <#--<input type="file" name="file" placeholder="请上传检查意见图片"  class="input-file-medium"id="file" value=""/>-->
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">检查意见图片：</label>
            <#--<input type="text" name="expressionDesc"  placeholder="请输入检查意见" class="input-medium"id="expressionDesc" value=""/>-->
            <#--<input type="file" name="file" placeholder="请上传检查意见图片"  class="input-file-medium"id="file" value=""/>-->
                <div style="float: left;margin-left: 50px">
                <#if detailMap.checkFileRecord??>
                    <input type="hidden" id="reformFileRecordSize" value="${detailMap.checkFileRecord?size}"/>
                    <#assign n = 0 />
                    <#list detailMap.checkFileRecord as fileRecord>
                        <#assign n = n+1 />
                        <#if n gt 3><#break></#if>
                        <div style="float: left;width: 100px">
                            <div style="float: left;width: 50px;height: 50px">
                                <#if fileRecord.oldPhotoPath?? >
                                    <img style="float: left" src="${qnUrl}${fileRecord.oldPhotoPath!''}"
                                         onclick="enlargePhoto(this)"
                                         id="photo${fileRecord.id}" width="50px" height="50px"/>
                                <#else >
                                      <img style="float: left" src="/images/whitepanel_bg2.png"
                                           onclick="enlargePhoto(this)"
                                           id="photo${fileRecord.id}" width="50px" height="50px"/>
                                </#if>

                            </div>
                            <#if taskType == '1' >
                                <input hidden class="add-inputfile"
                                       onchange="updateFile(this,'${fileRecord.id}',1)" id="photoFile${n}"
                                       type="file" name="file${n}" accept="image/*"/>
                                <label style="float: left;margin-top: 5px;margin-left: 1px" for="photoFile${n}"
                                       title="点击上传文件">
                                    <a style="color:#3abdab;">替换</a>
                                </label>

                                <a style="float: left;color:#3abdab;margin-top: 5px;margin-left: 1px"
                                   href="javascript:deletePhoto('${fileRecord.id}',1,${n})">删除</a>
                            </#if>
                        </div>
                    </#list>
                    <#if n lt 3>
                        <#list n..2 as t>
                            <#assign n = n+1 />
                            <#if n gt 3><#break></#if>
                            <div style="float: left;width: 100px">
                                <div style="float: left;width: 50px;height: 50px">
                                    <img style="float: left" src=""
                                         onclick="enlargePhoto(this)" hidden
                                         id="photo${n}" width="50px" height="50px"/>
                                </div>
                                <#if taskType == '1' >
                                    <input hidden class="add-inputfile"
                                           onchange="updateFile(this,'${n}',2)" id="photoFile${n}"
                                           type="file" name="file${n}" accept="image/*"/>
                                    <label style="float: left;margin-top: 5px;margin-left: 1px" for="photoFile${n}"
                                           title="点击上传文件">
                                        <a style="color:#3abdab;">添加</a>
                                    </label>

                                    <a style="float: left;color:#3abdab;margin-top: 5px;margin-left: 1px"
                                       href="javascript:deletePhoto('${n}',2,${n})">删除</a>
                                </#if>
                            </div>
                        </#list>
                    </#if>
                <#else >
                    <input type="hidden" id="reformFileRecordSize" value="0"/>
                    <#list 0..2 as n>
                    <#--<#assign n = n+1 />-->
                    <#--<#if n gt 3><#break></#if>-->
                        <div style="float: left;width: 100px">
                            <div style="float: left;width: 50px;height: 50px">
                                <img style="float: left" src=""
                                     onclick="enlargePhoto(this)" hidden
                                     id="photo${n}" width="50px" height="50px"/>
                            </div>
                            <#if taskType == '1' >
                                <input hidden class="add-inputfile"
                                       onchange="updateFile(this,'${n}',2)" id="photoFile${n}"
                                       type="file" name="file${n}" accept="image/*"/>
                                <label style="float: left;margin-top: 5px;margin-left: 1px" for="photoFile${n}"
                                       title="点击上传文件">
                                    <a style="color:#3abdab;">添加</a>
                                </label>

                                <a style="float: left;color:#3abdab;margin-top: 5px;margin-left: 1px"
                                   href="javascript:deletePhoto('${n}',2,${n})">删除</a>
                            </#if>
                        </div>
                    </#list>
                </#if>
                </div>
            </div>
        <#if taskType == '3' >
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">整改意见：</label>
                <span id="degree" class="span-medium">${detailMap.closeMemo!""}</span>
            <#--<input type="file" name="file" placeholder="请上传检查意见图片"  class="input-file-medium"id="file" value=""/>-->
            </div>

            <div class="form-group-div form-layer-input clearfix">

                <label class="control-label">整改意见图片：</label>
                <div style="float: left;margin-left: 50px">
                <#--<input type="text" name="expressionDesc"  placeholder="请输入检查意见" class="input-medium"id="expressionDesc" value=""/>-->
                <#--<input type="file" name="file" placeholder="请上传检查意见图片"  class="input-file-medium"id="file" value=""/>-->
                    <#if detailMap.reformFileRecord??>
                        <#assign n = 0 />
                        <#list detailMap.reformFileRecord as fileRecord>
                            <#assign n = n+1 />
                            <#if n gt 3><#break></#if>
                            <div style="float: left;width: 100px">
                                <div style="float: left;width: 50px;height: 50px">
                                <#--<img src="${qnUrl}${fileRecord.oldPhotoPath!''}"-->
                                <#--onclick="enlargePhoto(this)" width="50px"-->
                                <#--height="50px"/>-->
                                       <#if fileRecord.oldPhotoPath?? >
                                <img style="float: left" src="${qnUrl}${fileRecord.oldPhotoPath!''}"
                                     onclick="enlargePhoto(this)"
                                     id="photo${fileRecord.id}" width="50px" height="50px"/>
                                       <#else >
                                      <img style="float: left" src="/images/whitepanel_bg2.png"
                                           onclick="enlargePhoto(this)"
                                           id="photo${fileRecord.id}" width="50px" height="50px"/>
                                       </#if>
                                </div>
                            </div>

                        </#list>
                    </#if>
                </div>
            </div>
        </#if>
        <#--  <div class="form-group-div form-layer-input clearfix">
              <label class="control-label">亮点：</label>
              <input type="text" class="input-medium"  placeholder="请输入亮点" id="corpName" value=""/>
              <input type="file" class="input-file-medium" placeholder="请上传亮点图片" name="file" id="tp"/>
          </div>-->
            <div style="text-align: center;padding:12px 0px">
                <button type="button" class="cancel btn btn-cancel">关闭</button>
            <#if taskType == '1' >
                <button type="submit" id="submitButton" class="btn btn-main">确定</button>
            </#if>
            </div>
        </div>
    </section>
</form>
</body>


</html>